package com.yuan.yblog.search.config;

import io.swagger.v3.oas.annotations.ExternalDocumentation;
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeIn;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeType;
import io.swagger.v3.oas.annotations.info.Contact;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.info.License;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.security.SecurityScheme;
import org.springframework.context.annotation.Configuration;

/**
 * @author hepeiyuan on 2024/5/11 0:08
 * @description
 */
@Configuration
@OpenAPIDefinition(
        info = @Info(
                title = "yblog-search",
                version = "1.0",
                description = "搜索模块接口测试",
                contact = @Contact(name = "TOM"),
                license = @License(name = "springdoc官方文档", url ="http://springdoc.org")
        ),
        security = @SecurityRequirement(name = "Authorization"),
        externalDocs = @ExternalDocumentation(description = "项目外部文档：README.md",
                url = "https://gitee.com/lazypig123/yblog/blob/master/README.md"
        )
)
@SecurityScheme(name = "Authorization", in = SecuritySchemeIn.HEADER, type = SecuritySchemeType.APIKEY, scheme = "Authorization")
public class Swagger3Config {
}